package com.k136.config.listener;

import com.k136.service.BrandService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

/**
 * TODO 类
 *
 * @author LiuTai
 * @version 1.00
 * @Date 2024/9/3
 */
@Component
public class MySessionListener implements HttpSessionListener {
    @Resource
    private BrandService brandService;

    @Override
    public void sessionCreated(HttpSessionEvent se) {
        brandService.selBrand();
        System.out.println("会话创建了了~~~~~~");
    }
}
